新浪微博API接口(JAVA版) |
您所在的位置:网站首页 › java processor接口 › 新浪微博API接口(JAVA版) |
新浪微博 API 接口( JAVA 版)
新浪微博 API ( java 版)
============================ 修改事项:
1 、接口返回结果采用 json 对象方式封装
2 、修改 WeiboResponse 中空字符串 ("") 调用判断的 bug 3 、修改了 JSONObject 中返回空对象的问题
4 、增加了直接文件上传接口直接
常用接口实例:
(使用前先修改 Weibo.java 中
public static final String CONSUMER_KEY = ""; public static final String CONSUMER_SECRET = ""; 填写成实际申请的 CONSUMER_KEY 及 CONSUMER_SECRET )
1 、获取最新公共微博列表
参 考 : weibo4j.examples.GetTimelines 中 的 getPublicTimeline() 部分
2 、发表微博
参考: weibo4j.examples.Update 中的 updateStatus(...) 部分
3 、发表评论
参考: weibo4j.examples.Update 中的 updateComment(...) 部 分
4 、删除评论
参考: weibo4j.examples.Update 中的 destroyComment(...) 部 分
5 、发送私人消息
参考: weibo4j.examples.DirectMessage 类
6 、发表带图片的微博
参 考 : weibo4j.examples.OAuthUploadByFile 中 的 uploadStatus(status,file) 部分
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |